# encoding: utf-8

class WelcomeController < ApplicationController
  def index
  end

  def search
    if !params[:postid].empty?
      @result=Post.where("post_id = #{params[:postid]}") unless params[:postid].nil?
   end
  render 'welcome/result'
  end

end
